<?php

namespace common\models\datas;

use Yii;

/**
 * This is the model class for table "{{%customer_site}}".
 *
 * @property integer $customer_id
 * @property integer $site_id
 */
class CustomerSite extends \common\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%customer_site}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['customer_id', 'site_id'], 'required'],
            [['customer_id', 'site_id'], 'integer']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'customer_id' => Yii::t('common', '会员编号'),
            'site_id' => Yii::t('common', '分店编号'),
        ];
    }
}
